package org.blog.dao;

import org.apache.ibatis.annotations.Mapper;
import org.blog.entity.Admin;
import org.blog.entity.param.AdminParam;

import java.util.List;
import java.util.Map;

@Mapper
public interface AdminMapper {
    int deleteByPrimaryKey(Integer adminId);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer adminId);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    List<Admin> getAdmins(Map<String, Object> map);

    Admin selectByAdminName(String adminName);
}